package jnpf.model.znm.theme.tree;

import jnpf.model.themeLog.Themeupdatelog;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class TreeDragDTO {
    @NotBlank(message = "主题id不能为空")
    private String themeId;
    @NotBlank(message = "节点ID不能为空")
    private String id;

    @NotBlank(message = "目标ID不能为空")
    private String targetId;

    private String targetParentId;

    @Pattern(regexp = "after|before|inner", message = "位置参数传递错误")
    private String position;

    /**
     * 当为插入类型的时候，由前端计算好排序
     */
    private Integer innerSort;

    private Themeupdatelog themeupdatelog;

}
